/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.bridge.major;

import ru.jSkyRoom.interfaces.major.Texture;
import skyproc.TXST;
import skyproc.TXST.TXSTflag;
import skyproc.genenums.TextureMapName;

/**
 *
 * @author Rakev
 */
public class TextureBridge extends MajorBridge<TXST> implements Texture {

    public TextureBridge(TXST adapting) {
        super(adapting);
    }

    @Override
    public String getMap(TextureMapName name) {
        return getRawObject().getNthMap(name);
    }

    @Override
    public void setMap(TextureMapName name, String path) {
        getRawObject().setNthMap(name, path);
    }

    @Override
    public boolean getFlag(TXSTflag flag) {
        return getRawObject().get(flag);
    }

    @Override
    public void setFlag(TXSTflag flag) {
        getRawObject().set(flag, true);
    }

    @Override
    public void unsetFlag(TXSTflag flag) {
        getRawObject().set(flag, false);
    }
}
